package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffFirstTargetCatDto
 * @使用场景
 */
@Data
public class BffFirstTargetCatDto implements Serializable {

    /**
     * 目标分类ID
     */
    @ApiModelProperty("目标分类ID")
    private String targetCategoryId;

    /**
     * 目标分类标识
     */
    @ApiModelProperty("目标分类标识")
    private String targetCategoryCode;
    /**
     * 目标分类名称
     */
    @ApiModelProperty("目标分类名称")
    private String targetCategoryName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffFirstTargetCatDto that = (BffFirstTargetCatDto) o;
        return targetCategoryId == that.targetCategoryId && targetCategoryCode == that.targetCategoryCode && targetCategoryName == that.targetCategoryName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), targetCategoryId, targetCategoryCode, targetCategoryName);
    }

}
